package edu.spex.yjl.week08.class2;
//建立测试类TestOne，在main方法里实例化一头北极熊，运行它的wholeLife方法，输出运行结果，实例化一只青蛙，运行它的wholeLife方法。

public class TestOne {
    public static void main(String[] args){
        Animal bear=new Bear("xxx","yyyy","zzz","hhh");
        System.out.println(bear.wholeLife());
        Animal frog=new Frog("xxx2","yyyy","zzz","hhh");
        System.out.println(frog.wholeLife());
    }
}
